package com.example.rfidserver.pojo;

import androidx.annotation.NonNull;

import java.util.Objects;

public class Ticket {
    private int ticket_id;
    private String ticket_type;
    private String ticket_description;

    public int getTicket_id() {
        return ticket_id;
    }

    public void setTicket_id(int ticket_id) {
        this.ticket_id = ticket_id;
    }

    public String getTicket_type() {
        return ticket_type;
    }

    public void setTicket_type(String ticket_type) {
        this.ticket_type = ticket_type;
    }

    public String getTicket_description() {
        return ticket_description;
    }

    public void setTicket_description(String ticket_description) {
        this.ticket_description = ticket_description;
    }


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Ticket ticket = (Ticket) o;
        return ticket_id == ticket.ticket_id &&
                Objects.equals(ticket_type, ticket.ticket_type) &&
                Objects.equals(ticket_description, ticket.ticket_description);
    }

    @Override
    public int hashCode() {
        return Objects.hash(ticket_id, ticket_type, ticket_description);
    }

    @Override
    public String toString() {
        return "Ticket{" +
                "ticket_id=" + ticket_id +
                ", ticket_type='" + ticket_type + '\'' +
                ", ticket_description='" + ticket_description + '\'' +
                '}';
    }
}
